package com.ruoyi.qiushi.domain.equipment;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 设备列对象 qiushi_device
 *
 * @author ruoyi
 * @date 2023-12-22
 */
public class QiushiDevice extends BaseEntity {
    private static final long serialVersionUID = 1L;

    private String familyName;

    public String getFamilyName() {
        return familyName;
    }

    public void setFamilyName(String familyName) {
        this.familyName = familyName;
    }

    /**
     * $column.columnComment
     */
    private Long id;

    /**
     * 入库单号
     */
    @Excel(name = "入库单号")
    private String inNo;

    /**
     * 设备名称
     */
    @Excel(name = "设备名称")
    private String deviceName;

    /**
     * 设备编号
     */
    @Excel(name = "设备编号")
    private String deviceNo;

    /**
     * 设备规格
     */
    @Excel(name = "设备规格")
    private String spec;

    /**
     * 类型  qiushi_device_type.id
     */
    @Excel(name = "类型  qiushi_device_type.id")
    private Long deviceType;

    /**
     * 关联用户
     */
    @Excel(name = "关联用户")
    private Long userId;

    /**
     * 关联家庭人员
     */
    @Excel(name = "关联家庭人员")
    private Long familyId;

    /**
     * 用户添加时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "用户添加时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date userAddTime;

    /**
     * 服务到期时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "服务到期时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date serviceEndDate;

    /**
     * 1未绑定 2已绑定 3已失效
     */
    @Excel(name = "1未绑定 2已绑定 3已失效")
    private String status;

    private String deviceStandard;

    /**
     * 0正常 1删除
     */
    private String delFlag;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setInNo(String inNo) {
        this.inNo = inNo;
    }

    public String getInNo() {
        return inNo;
    }

    public void setDeviceName(String deviceName) {
        this.deviceName = deviceName;
    }

    public String getDeviceName() {
        return deviceName;
    }

    public void setDeviceNo(String deviceNo) {
        this.deviceNo = deviceNo;
    }

    public String getDeviceNo() {
        return deviceNo;
    }

    public void setSpec(String spec) {
        this.spec = spec;
    }

    public String getSpec() {
        return spec;
    }

    public void setDeviceType(Long deviceType) {
        this.deviceType = deviceType;
    }

    public Long getDeviceType() {
        return deviceType;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setFamilyId(Long familyId) {
        this.familyId = familyId;
    }

    public Long getFamilyId() {
        return familyId;
    }

    public void setUserAddTime(Date userAddTime) {
        this.userAddTime = userAddTime;
    }

    public Date getUserAddTime() {
        return userAddTime;
    }

    public void setServiceEndDate(Date serviceEndDate) {
        this.serviceEndDate = serviceEndDate;
    }

    public Date getServiceEndDate() {
        return serviceEndDate;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getStatus() {
        return status;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    public String getDelFlag() {
        return delFlag;
    }

    public String getDeviceStandard() {
        return deviceStandard;
    }

    public void setDeviceStandard(String deviceStandard) {
        this.deviceStandard = deviceStandard;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("inNo", getInNo())
                .append("deviceName", getDeviceName())
                .append("deviceNo", getDeviceNo())
                .append("spec", getSpec())
                .append("deviceType", getDeviceType())
                .append("userId", getUserId())
                .append("familyId", getFamilyId())
                .append("userAddTime", getUserAddTime())
                .append("serviceEndDate", getServiceEndDate())
                .append("status", getStatus())
                .append("delFlag", getDelFlag())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .toString();
    }
}
